<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- 
<script type="text/javascript" src='resources/js/global/global.ca.js'></script>
 -->
<script>
	
	$(function(){
	});

</script>

<script>
 function fy(page){
   document.getElementById("page").value=page;
  // alert(document.getElementById("page").value);
   document.forms[3].submit(); 
  }
</script>

<div id="content">
	
	<!-- 右面板 -->
	<div id="panel-right">
		<%@ include file="sidebar.jsp"%>
	</div>
	
	<!-- 左面板 -->
	<div id="panel-left">
		
		<!-- 车站查询 -->
		<div id="box-search">
			<%@ include file="train/trainSearchForm.jsp"%>
		</div>
		
		<!-- 新闻公告 -->
		<div id="box-news">
			<table cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td colspan="3">
						<table cellspacing="0" cellpadding="0" width="100%">
							<tr>
								<td class="title_banner_left"></td>
								<td class="title_banner_center"><span class="banner_header">新闻公告</span></td>
								<td class="title_banner_right"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="box_left"></td>
					<td height="300px;" valign="top" class="box_content">
						<div>
							<ul>
								<c:forEach items="${xw.items}" var="item" varStatus="vs">
								<li class="clear">
								<a href="home/newsDetail?id=${item.id}" >${item.announceSubject}</a>
								<span class="float_right">${fn:substring(item.announceLastModifyTime,0,19)}</span>
								</li> 
								</c:forEach>
							</ul>
						</div>
						
						<div style="padding-top:20px;">
						  <form name="form3"  action="/eduapp/home" method="post">
						<table width="100%" border="0" align="center" cellspacing="5">
                          <tr>
                          
              					 <input  type="hidden" id="page" name="page"/>
             			   
						    <th width="35%" scope="col">
							</th>
 							<th width="8%" align="right" valign="middle" scope="col">
 							<a  onclick="fy(1)" title="首页">首页</a>
							</th>
							<th width="8%" align="right" valign="middle" scope="col">
							<a onclick="fy(<c:if test="${xw.currentPage == 1}">1</c:if><c:if test="${xw.currentPage != 1}">${xw.currentPage -1}</c:if>)" title="上一页">上一页</a>
							</th>
                            <th width="23%" align="right" valign="middle" scope="col" style="FONT-SIZE:9pt;">
				           	共  <span style="color:#FF9900;">${xw.totalCount}</span> 条记录,第<span style="color:#FF9900;">${xw.currentPage} </span>页[共<span style="color:#FF9900;">${xw.totalPage} </span>页]
                            </th>
							<th width="8%" align="right" valign="middle" scope="col">
							<a onclick="fy(<c:if test="${xw.currentPage == xw.totalPage}">${xw.totalPage}</c:if><c:if test="${xw.currentPage != xw.totalPage}">${xw.currentPage + 1}</c:if>)" title="下一页">下一页</a>
							</th>
							<th width="8%" align="right" valign="middle" scope="col">
							<a onclick="fy(${xw.totalPage})" title="尾页">尾页</a>
		
                            </th>
                          </tr>
                        </table>
                         </form>
						</div>
						
					</td>
					<td class="box_right">
					
					</td>
					
				</tr>
				<tr>
					<td class="box_btm_l">
					</td>
					<td class="box_btm_c" width="678px"></td>
					<td class="box_btm_r"></td>
				</tr>
			</table>
		</div>
		
	</div>

</div>